
<html>
<head>
<meta charset="UTF-8">
<title>数据表模型信息列表</title>
<link href="../../static/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
<link href="../../static/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
<script src="../../static/easyui/jquery.min.js" type="text/javascript"></script>
<script src="../../static/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
<script src="../../ffres/dict/all.js"></script>
<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<script type="text/javascript">
	var callBack = $.getUrlParam('callBack');
	function doReturnChoice() {
		var row = $('#dg').datagrid('getSelected');
		if (row){
			if (window.parent[callBack])
				window.parent[callBack].call(window.parent, row);
		} else {
			$.messager.alert("请选择表模型！");
		}
	}
	$(function() {
		$('#dg').datagrid({
	        onDblClickRow: function (rowIndex, rowData) {
	        	doReturnChoice();
	        }
	    });
	});
</script>
</head>
<body class="easyui-layout">
<div data-options="region:'north',title:''" style="height: 40px; background: #F4F4F4;">
	<form id="searchForm">
		<table>
			<tr>
				<td>&nbsp;表模型代码：</td>
				<td><input name="objectCode" id="objectCode"/></td>
				<td>&nbsp;表模型名称：</td>
				<td><input name="objectName" id="objectName"/></td>				
				<td><a class="easyui-linkbutton" id='btnQuery' href="javascript:void(0);" onclick="JLEUtil.queryForm('searchForm','dg','../../api/all/model/table/infos');">查找</a></td>
				<td><a class="easyui-linkbutton" id='btnClear' href="javascript:void(0);" onclick="JLEUtil.clearForm('searchForm');">清空</a></td>
			</tr>
		</table>
	</form>
</div>
<div data-options="region:'center',split:false">
<table id="dg" class="easyui-datagrid" title="" style="width:100%;height:100%"
			data-options="singleSelect:true,collapsible:true,url:'../../api/all/model/table/infos',method:'post'"
		title="Load Data" 
		rownumbers="true" pagination="true" pageSize="20">
		<thead>
			<tr>
				<th data-options="field:'objectCode',resizable:true" width="15%">表模型代码</th>
				<th data-options="field:'objectName',resizable:true" width="18%">表模型名称</th>
				<th data-options="field:'objectLocation',resizable:true" width="25%">表模型位置</th>
				<th data-options="field:'objectState',resizable:true" width="10%" formatter="formatter_DM_OBJECT_STATE" hidden="true">表模型状态</th>
				<th data-options="field:'tableDataCycle',resizable:true" width="10%" formatter="formatter_DM_DATA_CYCLE">表数据周期</th>
				<th data-options="field:'createUser',resizable:true" width="10%">创建者</th>
				<th data-options="field:'createTime',resizable:true" width="13%">创建时间</th>
				<th data-options="field:'objectDesc',resizable:true" width="36%">表模型用途</th>				
				<th data-options="field:'tableRecordLength',resizable:true" hidden="true">表记录长度</th>
			</tr>			
		</thead>
	</table>
</div>
<div data-options="region:'south',split:false" title="" style="width:100%;height:60px;background: #F4F4F4;">
	<div style="text-align:center;padding:10px">
		 <a href="javascript:doReturnChoice()" class="easyui-linkbutton">&nbsp;&nbsp;&nbsp;&nbsp;确&nbsp;&nbsp;&nbsp;&nbsp;定&nbsp;&nbsp;&nbsp;&nbsp;</a>
		 <a href="javascript:window.parent.JLEUtil.closewin();" class="easyui-linkbutton">&nbsp;&nbsp;&nbsp;&nbsp;取&nbsp;&nbsp;&nbsp;&nbsp;消&nbsp;&nbsp;&nbsp;&nbsp;</a>
	</div>
</div>

</body>
</html>

